﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ShiQuan.IotDevice.Entity
{
    /// <summary>
    /// 设备传感器
    /// </summary>
    public class IotDeviceSensorEntity : BasicIotDeviceEntity
    {
        /// <summary>
        /// 设备信息标识
        /// </summary>
        [Display(Name = "设备信息标识"), MaxLength(50)]
        public string RefDeviceId { get; set; }
        /// <summary>
        /// 设备名称
        /// </summary>
        [Display(Name = "名称"), MaxLength(50)]
        public string DeviceName { get; set; }
        /// <summary>
        /// 编号
        /// </summary>
        [Display(Name = "编号"), MaxLength(50)]
        public string Code { get; set; }
        /// <summary>
        /// 传感器名称-温度、湿度
        /// </summary>
        [Display(Name = "传感器名称"), MaxLength(50)]
        public string Name { get; set; }
        /// <summary>
        /// 单位：温度、湿度
        /// </summary>
        [Display(Name = "单位"), MaxLength(50)]
        public string Unit { get; set; }
        /// <summary>
        /// 数据值系数
        /// </summary>
        [Display(Name = "数据值系数")]
        public decimal? Factor { get; set; }
        /// <summary>
        /// 量程最大值
        /// </summary>
        [Display(Name = "量程最大值")]
        public decimal? RangeMax { get; set; }
        /// <summary>
        /// 量程最小值
        /// </summary>
        [Display(Name = "量程最小值")]
        public decimal? RangeMin { get; set; }
        /// <summary>
        /// 传感器量程
        /// </summary>
        [Display(Name = "传感器量程"), MaxLength(50)]
        public string Range { get; set; }
        /// <summary>
        /// 预警最大值
        /// </summary>
        [Display(Name = "预警最大值")]
        public decimal? WarnMax { get; set; }
        /// <summary>
        /// 预警最小值
        /// </summary>
        [Display(Name = "预警最小值")]
        public decimal? WarnMin { get; set; }
        /// <summary>
        /// 备注说明
        /// </summary>
        [Display(Name = "备注说明"), MaxLength(255)]
        public string Remark { get; set; }

        /// <summary>
        /// 安装标识
        /// </summary>
        [Display(Name = "安装标识"), MaxLength(50)]
        public string RefInstallId { get; set; }
        /// <summary>
        /// 当前值、最新值
        /// </summary>
        [Display(Name = "当前值")]
        public decimal? Current { get; set; }
    }
}
